package cn.tedu.egweibo.base.respont;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(2001, "操作成功"),
    OPERATION_FAILED(2002, "操作失败"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误"),
    NOT_LOGIN(1000, "未登录"),
    VALIDATED_ERROR(6000, "参数校验失败"),
    USERNAME_EXISTS(1002,"用户名已存在");
    private Integer state;
    private String message;
}
